package com.quanquan.user.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "oo_task_record")
@Entity
public class TaskRecord {

    /**
     * 主键
     */
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     * 用户id
     */
    @Column(name = "user_id",length = 64)
    private String userId;

    /**
     * 创建时间
     */
    @Column(name = "create_time", nullable = false, length = 32)
    private String createTime;

    /**
     * 签到
     */
    @Column(name = "sign",columnDefinition = "TINYINT default 0",nullable = false)
    private Integer sign;

    /**
     * 小票
     */
    @Column(name = "self_help_integral",columnDefinition = "TINYINT default 0",nullable = false)
    private Integer selfHelpIntegral;

    /**
     * 停车
     */
    @Column(name = "parking",columnDefinition = "TINYINT default 0",nullable = false)
    private Integer parking;
}
